{% csrf_token %}
{% if form.non_field_errors %}
{% for error in form.non_field_errors %}
<p class="errornote">
    {{ error }}
</p>
{% endfor %}
{% endif %}
{% for field in form %}
  <div class="form-group">
    <label>{% if field.field.required %}<em class="red-text">*</em>{% endif %} {{ field.label }}</label>
    {{ field }}
    {{ field.errors }}
    {% if field.help_text %}
      <small class="help_text text-muted">{{ field.help_text|safe }}</small>
    {% endif %}
  </div>
{% endfor %}